//
//  HMSearchView.swift
//  sina
//
//  Created by Kent on 16/9/22.
//  Copyright © 2016年 Ming. All rights reserved.
//

import UIKit

 @IBDesignable class HMSearchView: UIButton {

    
    class func loadSearchView() -> HMSearchView {
    
        let nib = UINib(nibName: "HMSearchView", bundle: nil)
        let searchView = nib.instantiate(withOwner: nil, options: nil).last as! HMSearchView
        return searchView
        
    }
    
    override func awakeFromNib() {
        self.imageEdgeInsets = UIEdgeInsets(top: 0, left: 10, bottom: 0, right: 0)
        self.titleEdgeInsets = UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 0)
        self.bounds.size.width = UIScreen.main.bounds.width
    }

}
